#! /bin/bash

# Author : Vincent
# Warning, this piece of code comes with no warranty

########
# Goal of this script : to install Ant and export the environment variables. 
# It is a subpart of deploy_ecom.sh which should be included in the
# same directory.
########

sudo apt-get update -qq
sleep 2
sudo apt-get update -qq
sleep 4
if [ ! -f /usr/bin/ant ] ; then
    sudo apt-get install -y -qq ant    openjdk-6-jdk
else
    echo "Ant is already installed."
fi


export ANT_HOME=/usr/share/ant

export PATH=$PATH:${ANT_HOME}/bin 
